﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace hbse.Entities
{
    public class Customer : EntityBindable
    {

        private string customerCode;
        private string customerName;
        private IList<CustomerPrint> customerprints;
        private Users user;
        private DateTime? addDate;
        private string status;


        public virtual string CustomerCode
        {
            get { return customerCode; }
            set
            {
                if (customerCode != value)
                {
                    customerCode = value;
                    NotifyPropertyChanged("CustomerCode");
                }
            }
        }

        public virtual string CustomerName
        {
            get { return customerName; }
            set
            {
                if (customerName != value)
                {
                    customerName = value;
                    NotifyPropertyChanged("CustomerName");
                }
            }
        }

        public virtual IList<CustomerPrint> CustomerPrints
        {
            get { return customerprints; }
            set
            {
                if (!Equals(customerprints, value))
                {
                    customerprints = value;
                    NotifyPropertyChanged("Customerprints");
                }
            }
        }
        public virtual Users Users
        {
            get { return user; }
            set
            {
                if (!Equals(user, value))
                {
                    user = value;
                    NotifyPropertyChanged("User");
                }
            }
        }
        public virtual DateTime? AddDate
        {
            get { return addDate; }
            set
            {
                if (addDate != value)
                {
                    addDate = value;
                    NotifyPropertyChanged("AddDate");
                }
            }
        }
        public virtual string Status
        {
            get { return status; }
            set
            {
                if (status != value)
                {
                    status = value;
                    NotifyPropertyChanged("Status");
                }
            }
        }
    }
}
